package com.hospital.hospitalserver.service;

import com.hospital.hospitalserver.mapper.ProfessionMapper;
import com.hospital.hospitalserver.util.Response;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 职称相关实现类
 * */
@Service
@RequiredArgsConstructor
public class ProfessionService {
    private final ProfessionMapper professionMapper;

    /**
     * 获取医生职称信息列表
     * */
    public Response getDoctorProfessionList(){
        return Response.success(professionMapper.getDoctorProfessionList());
    }

    /**
     * 获取护士职称信息列表
     * */
    public Response getNurseProfessionList(){
        return Response.success(professionMapper.getNurseProfessionList());
    }

    /**
     * 获取药剂师职称信息列表
     * */
    public Response getPharmacistProfessionList(){
        return Response.success(professionMapper.getPharmacistProfessionList());
    }

    /**
     * 获取财务人员职称信息列表
     * */
    public Response getFinanceProfessionList(){
        return Response.success(professionMapper.getFinanceProfessionList());
    }
}
